package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    UserInfo getUserByName(@Param("username") String username);

    UserInfo login(UserInfo userInfo);

    int register(UserInfo userInfo);

    UserInfo getUserById(@Param("id") Integer id);
}
